package com.itheima.info.manage.system.controller;

import com.itheima.info.manage.system.domain.Student;
import com.itheima.info.manage.system.service.StudentService;

import java.util.Scanner;

public class StudentController extends BaseStudentController{


    @Override
    public Student getStudentInfo(String sid) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        //封装对象
        Student student = new Student();
        student.setSid(sid);
        student.setName(name);
        student.setAge(age);
        student.setBirthday(birthday);
        return student;
    }
}
